Hệ thống quản lý ISP trong PHP

1 <?php
2     require_once
"includes/headx.php";
3     
if (!isset($_SESSION['admin_session']) )
4     {
5         $commons->redirectTo(SITE_PATH.
'login.php');
6     }
7     require_once
"includes/classes/admin-class.php";
8     $admins =
new Admins($dbh);
9     $id = isset($_GET[
'customer' ])?$_GET[ 'customer' ]:'';
10     ?>
11 <!doctype html>
12 <html lang=
"en" class="no-js">
13 <head>
14     <meta charset=
" utf-8">
15     <meta name=
"viewport" content="width=device-width, initial-scale=1">
16     <link href=
'https://fonts.googleapis.com/css?family=Open+Sans:300,400,700' rel='stylesheet' type='text/css'>
17     <link rel=
"stylesheet" href="component/css/bootstrap.css"> <!-- CSS bootstrap -->
18     <link rel=
"stylesheet" href="component/css/bootstrap-select.min.css"> <!-- CSS bootstrap -->
19     <link rel=
"stylesheet" href="component/css/style.css"> <!-- Resource style -->
20     <link rel=
"stylesheet" href="component/css/reset.css"> <!-- Resource style -->
21     <link rel=
"stylesheet" href="component/css/invoice.css"> <!-- CSS bootstrap -->
22     <script src=
"component/js/modernizr.js"></script> <!-- Modernizr -->
23     <title>Invoice | Netway</title>
24 </head>
25 <body>
26 <div
class="container">
27         <?php
28             $info = $admins->getCustomerInfo($id);
29             
if (isset($info) && sizeof($info) > 0) {
30             $package_id = $info->package_id;
31             $packageInfo = $admins->getPackageInfo($package_id);
32         ?>
33     <div
class="row">
34         <div
class="brand"><img src="component/img/logo.png" alt=""></div>
35         <div
class="pull-right">Date: <?=date("jS F y")?></div><br>
36         <div
class="em"><b>Name : </b> <em><?=$info->full_name?></em></div>
37         <div
class="em"><b>Address:</b> <em><?=$info->address ?></em></div>
38         <div
class="em"><b>Contact :</b> <em><?=$info->contact ?></em> </div>
39         <div
class="em"><b>Package:</b> <em><?=$packageInfo->name?></em> </div>
40         <div
class="em"><b>IP address:</b> <em><?=$info->ip_address?></em></div>
41         <span
class="message pull-right">Last payment date : <?=date("jS F y",strtotime("+7 day"))?></span>
42     </div>
43         <?php } ?>
44         <div
class="row">
45         <table
class="table table-striped table-bordered">
46             <thead
class="thead-inverse">
47                 <tr>
48                     <th>Payment ID </th>
49                     <th>Bills</th>
50                     <th>Months</th>
51                     <th>Amount</th>
52                 </tr>
53             </thead>
54             <tbody>
55                 <?php
56                     $bills = $admins->fetchPaymentSlip($id);
57                     
if (isset($bills) && sizeof($bills) > 0){
58                 ?>
59                 <tr>
60                     <td><?=$bills->id?></td>
61                     <td><?=$bills->bill_id?></td>
62                     <td><?=$bills->bill_month?></td>
63                     <td><?=$bills->bill_amount?></td>
64                 </tr>
65             </tbody>
66             <tfoot>
67                 <tr>
68                     <th>In Words</td>
69                     <th colspan=
"3"><?=getToText($bills->bill_amount)?> Only.</th>
70                 </tr>
71             </tfoot>
72             <?php
73                 } ?>
74         </table>
75     </div>
76     <div
class="printbutton hide-on-small-only pull-left"><a href="#" onClick="javascript:window.print()">Print</a></div>
77     <div
class="sign pull-right">Authorized Signature</div>
78 </div>
79 </body>
80 <?php include
'includes/footer.php'; ?>
81 <script src=
"component/js/bootstrap-select.min.js"></script>
82 <script>
83     $(
'#months').on('changed.bs.select', function (e) {
84         console.log(
this.value);
85       });
86 </script>


Gõ tìm kiếm nhanh...